/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package jamjun.infra.web.el;

/**
 *
 * @author Java
 */
public enum ELBtnIcon {
    none(1){
        @Override
        public String jqIcon(){
            return "";
        }
        @Override
        public String imgIcon(){
            return "";
        }
        @Override
        public String imgIconDisable(){
            return "";
        }
    },
    save(2){
        @Override
        public String jqIcon(){
            return "ui-icon-disk";
        }
        @Override
        public String imgIcon(){
            return "";
        }
        @Override
        public String imgIconDisable(){
            return "";
        }
    },
    search(3){
        @Override
        public String jqIcon(){
            return "ui-icon-search";
        }
        @Override
        public String imgIcon(){
            return "";
        }
        @Override
        public String imgIconDisable(){
            return "";
        }
    },
    print(4){
        @Override
        public String jqIcon(){
            return "ui-icon-print";
        }
        @Override
        public String imgIcon(){
            return "";
        }
        @Override
        public String imgIconDisable(){
            return "";
        }
    },
    add(5){
        @Override
        public String jqIcon(){
            return "ui-icon-plus";
        }
        @Override
        public String imgIcon(){
            return "";
        }
        @Override
        public String imgIconDisable(){
            return "";
        }
    },delete(6){
        @Override
        public String jqIcon(){
            return "ui-icon-trash";
        }
        @Override
        public String imgIcon(){
            return "";
        }
        @Override
        public String imgIconDisable(){
            return "";
        }
    },close(6){
        @Override
        public String jqIcon(){
            return "ui-icon-closethick";
        }
        @Override
        public String imgIcon(){
            return "";
        }
        @Override
        public String imgIconDisable(){
            return "";
        }
    },cancel(6){
        @Override
        public String jqIcon(){
            return "ui-icon-cancel";
        }
        @Override
        public String imgIcon(){
            return "";
        }
        @Override
        public String imgIconDisable(){
            return "";
        }
    }
    
    ;
    
    private int value;
    public abstract String jqIcon();
    public abstract String imgIcon();
    public abstract String imgIconDisable();
    
    private ELBtnIcon(int value) {
        this.value = value;
    }
    public int getVal(){
        return this.value;
    }
    
    public static ELBtnIcon fromValue(int value) {  
        for (ELBtnIcon my: ELBtnIcon.values()) {  
            if (my.value == value) {  
                return my;  
            }  
        }  
        return null;  
    }  
}
